package com.lxy.openfeign.service;

import com.lxy.openfeign.config.TestCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author lixinyang
 * @className: TestService
 * @description: TODO
 * @date 2022/04/30日  15:12
 */


@Component
@FeignClient(value = "sentineltest1",fallback = TestCallback.class)
public interface TestService {
    @GetMapping("/sentinel2")
    String sentinel2();
}


